<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DataListPage.aspx.cs" Inherits="DataListPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:RecruitVietnamDbConnectionString %>"
            SelectCommand="SELECT [Email], [CompanyName], [ContactName], [Address], [Phone], [Activate] FROM [tblRCAccounts]">
        </asp:SqlDataSource>
    
    </div>
        <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1" RepeatColumns="2" RepeatDirection="Horizontal" Width="342px" OnItemCreated="DataList1_ItemCreated">
            <ItemTemplate>
                Email:
                <asp:Label ID="EmailLabel" runat="server" Text='<%# Eval("Email") %>'></asp:Label><br />
                CompanyName:
                <asp:Label ID="CompanyNameLabel" runat="server" Text='<%# Eval("CompanyName") %>'>
                </asp:Label><br />
                ContactName:
                <asp:Label ID="ContactNameLabel" runat="server" Text='<%# Eval("ContactName") %>'>
                </asp:Label><br />
                Address:
                <asp:Label ID="AddressLabel" runat="server" Text='<%# Eval("Address") %>'></asp:Label><br />
                Phone:
                <asp:Label ID="PhoneLabel" runat="server" Text='<%# Eval("Phone") %>'></asp:Label><br />
                Activate:
                <asp:Label ID="ActivateLabel" runat="server" Text='<%# Eval("Activate") %>'></asp:Label><br />
                <br />
            </ItemTemplate>
            <SelectedItemStyle BackColor="Blue" />
        </asp:DataList>
        <asp:Label ID="Label1" runat="server" Text="Label" Width="171px"></asp:Label>
    </form>
</body>
</html>
